﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Geral.Master" Inherits="System.Web.Mvc.ViewPage<IList<SiteAgle.Models.Projeto>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Projeto
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
		<h1>Gestor Agile - Projetos (Lista)</h1>
  <div class="botoes">
			<a href="/projeto/novo" title="Adicionar Novo">
				<div class="botoesBox">
					<span class="novo"></span>
				</div>
			</a>
		</div>

		<div id="content">
				<table class="table">
					<thead>
						<tr>
							<th>Código</th>
							<th>Projeto</th>
							<th>Status</th>
							<th>Data de Início</th>
							<th>Término Previsto</th>
							<th>Autor</th>
							<th>% Terminado</th>
							<td style="width:90px"></td>
						</tr>
					</thead>

					<tbody>
                      <% foreach (SiteAgle.Models.Projeto item in Model)
                         { %>
						<tr>
							<td><%:item.Id %></td>
							<td><%:item.Nome %></td>
							<td><%:item.StatusProjeto.Descricao %></td>
							<td><%:item.DataInicio.ToString("dd/MM/yyyy") %></td>
							<td><%:item.DataTermino.ToString("dd/MM/yyyy") %></td>
							<td><%:item.Usuario.Nome %></td>
							<td>100%</td>
							<td>
                                <a href="/projeto/excluir/<%= item.Id %>" title="Excluir" class="remove-list-cadastro"><span class="list-remover"></span></a>
								<a href="/projeto/editar/<%:item.Id %>" title="Editar"><span class="list-editar"></span></a>
							</td>
						</tr>
                        <%} %>
					</tbody>
				</table>
		</div><!-- CONTENT -->

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content> 

<asp:Content ID="Content5" ContentPlaceHolderID="ContentScripts" runat="server">
</asp:Content>
